package com.yx.changdao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yx.changdao.common.entity.CommunityVillage;
import com.yx.changdao.common.exception.AlertException;

import java.util.List;


/**
 * @Description: <br/>
 * 村/社区
 * <p>
 * <br/>
 * @Auther: walter
 * @create 2020/04/18 15:48
 */
public interface CommunityVillageService extends IService<CommunityVillage> {
    /**
     * 删除网格
     * @param id
     * @return
     */
    boolean removeGrid (Integer id) throws AlertException;

    /**
     * 根据乡镇id查村/社区
     */
    List<CommunityVillage> getVillageByTownId(Integer id) throws  AlertException;
}
